import { WeaTools } from 'ecCom';

//得到接受人共享的数据
export const getlist = (params={workPlanType: null, timeModul: null, planName: null}) => {
    return WeaTools.callApi('/api/workplan/modul/getlist', 'POST', params);
}


//得到接受人共享的数据
export const getCondition = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/getCondition', 'POST', params);
}

//删除接受人共享的数据
export const deleteData = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/del', 'POST', params);
}

//得到新建计划模板中的跟后台相关的一些默认参数
export const getBaseData = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/getBaseData', 'POST', params);
}

//在新建计划模板表单中的保存接口
export const add = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/add', 'POST', params);
}

//获取表格中当前行的详细信息
export const viewPlanModul = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/viewPlanModul', 'POST', params);
}

//生成日程
export const createWorkPlan = (params={}) => {
    return WeaTools.callApi('/api/workplan/modul/createWorkPlan', 'POST', params);
}